import { Service } from "~/core/service";
import { NetService } from "~/util/net.service";
import { Inject, Debounce } from "~/core/decorator";
import { serviceMember } from "~/config/server";

export class MemberService extends Service {

  @Inject(NetService)
  private netService: NetService;

  /**
    * 查询所有的会员
    */
   findAllListByPage(data, page) {
    return this.netService.send({
      server: serviceMember.memberController.findAllListByPage,
      data,
      page
    })
  }

  /**
    * 添加会员
    */
   addMember(data) {
    return this.netService.send({
      server: serviceMember.memberController.addMember,
      data
    })
  }

  /**
   * 编辑会员
   */
  updateMember(data) {
    return this.netService.send({
      server: serviceMember.memberController.updateMember,
      data
    })
  }

}